package chars;

import java.io.File;
import javax.imageio.ImageIO;

public class exitLevel extends hittable {

    public exitLevel(int x, int y) {
        super(x, y);
        try {
            appearance = ImageIO.read(new File("Images/objects/exitLevel.png"));
        } catch (Exception e) {
            System.err.print(e.getMessage());
        }
    }
    public void act(platformer.Manager manager){
        try{
            manager.win = true;
        }catch(Exception e){
            System.err.println(e.getMessage());
        }
    }
}
